const homeContainer = () => import( '@/containers/home/home.vue') //首页
const homeSearchContainer = () => import( '@/containers/home/search.vue') //搜索页
const videoContainer = () => import( '@/containers/video/video.vue') //视频页
const smallVideoContainer = () => import( '@/containers/smallVideo/smallVideo.vue') //小视频页
const redPacketContainer = () => import( '@/containers/redPacket/redPacket.vue') //红包页
const rulestContainer = () => import( '@/containers/rules/rules.vue') //红包页-活动规则
const loginContainer = () => import( '@/containers/login/login.vue') //登录页
const mineContainer = () => import( '@/containers/mine/mine.vue') //我的
const homeDeailesContainer = () => import( '@/containers/home/homeDeailes.vue') //首页详情页
const notFoundContainer = r => require.ensure([], () => r(require('@/containers/NotFoundContainer.vue')), '404')


export default [
	{
		path: '*',
		redirect: '/home'
	},
	{
		path: '/home',
		name: `home`,
		component: homeContainer, //首页
		meta: {
			requiresAuth: false,
			keepAlive: false
		}
	},
	{
		path: '/video',
		name: `video`,
		component: videoContainer, //视频页
	},
	{
		path: '/homeDeailes',
		name: `homeDeailes`,
		component: homeDeailesContainer, //首页详情
	},
	{
		path: '/smallVideo',
		name: `smallVideo`,
		component: smallVideoContainer, //小视频页
	},
	{
		path: '/redPacket',
		name: `redPacket`,
		component: redPacketContainer, //红包页
	},
	{
		path: '/rules',
		name: `rules`,
		component: rulestContainer, //红包页-活动规则
	},
	{
		path: '/login',
		name: `login`,
		component: loginContainer, //登录页
	},
	{
		path: '/mine',
		name: `mine`,
		component: mineContainer, //我的
	},
	{
		path: '/search',
		name: `search`,
		component: homeSearchContainer, //搜索页
	},
	{
		path: '/404',
		component: notFoundContainer //404
	},
	{
		path: '*',
		component: notFoundContainer //404
	}
	
]